package com.example.handheld4_gsignal_app.data;

/**
 * 信号数据模型
 */
public class SignalData {
    private String deviceId;
    private int signalStrength;
    private double latitude;
    private double longitude;
    private double altitude;
    private float accuracy;
    private String networkType;
    private String operatorName;
    private String cellId;
    private String lac;
    private String mcc;
    private String mnc;
    private int rsrp;
    private double rsrq;
    private int rssi;
    private double snr;
    private String collectedAt;

    // 构造函数
    public SignalData() {}

    public SignalData(String deviceId, int signalStrength, double latitude, double longitude) {
        this.deviceId = deviceId;
        this.signalStrength = signalStrength;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    // Getter和Setter方法
    public String getDeviceId() { return deviceId; }
    public void setDeviceId(String deviceId) { this.deviceId = deviceId; }

    public int getSignalStrength() { return signalStrength; }
    public void setSignalStrength(int signalStrength) { this.signalStrength = signalStrength; }

    public double getLatitude() { return latitude; }
    public void setLatitude(double latitude) { this.latitude = latitude; }

    public double getLongitude() { return longitude; }
    public void setLongitude(double longitude) { this.longitude = longitude; }

    public double getAltitude() { return altitude; }
    public void setAltitude(double altitude) { this.altitude = altitude; }

    public float getAccuracy() { return accuracy; }
    public void setAccuracy(float accuracy) { this.accuracy = accuracy; }

    public String getNetworkType() { return networkType; }
    public void setNetworkType(String networkType) { this.networkType = networkType; }

    public String getOperatorName() { return operatorName; }
    public void setOperatorName(String operatorName) { this.operatorName = operatorName; }

    public String getCellId() { return cellId; }
    public void setCellId(String cellId) { this.cellId = cellId; }

    public String getLac() { return lac; }
    public void setLac(String lac) { this.lac = lac; }

    public String getMcc() { return mcc; }
    public void setMcc(String mcc) { this.mcc = mcc; }

    public String getMnc() { return mnc; }
    public void setMnc(String mnc) { this.mnc = mnc; }

    public int getRsrp() { return rsrp; }
    public void setRsrp(int rsrp) { this.rsrp = rsrp; }

    public double getRsrq() { return rsrq; }
    public void setRsrq(double rsrq) { this.rsrq = rsrq; }

    public int getRssi() { return rssi; }
    public void setRssi(int rssi) { this.rssi = rssi; }

    public double getSnr() { return snr; }
    public void setSnr(double snr) { this.snr = snr; }

    public String getCollectedAt() { return collectedAt; }
    public void setCollectedAt(String collectedAt) { this.collectedAt = collectedAt; }

    @Override
    public String toString() {
        return "SignalData{" +
                "deviceId='" + deviceId + '\'' +
                ", signalStrength=" + signalStrength +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", networkType='" + networkType + '\'' +
                ", operatorName='" + operatorName + '\'' +
                ", collectedAt='" + collectedAt + '\'' +
                '}';
    }
}